package com.foreknow.demo4;
public class TestAnimal {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.name = "tom";
        animal.age = 3;
        animal.health = 98;
        animal.eat();
        animal.showInfo();

        Animal animal1 = new Animal();
        animal1.name = "tom123";
        animal1.age = 4;
        animal1.health = 99;
        animal1.eat();
        animal1.showInfo();

    }
}
